package com.cwl.base.day01;

/**
 * @program: java_base
 * @description: 测试字符类型和布尔类型
 * @author: ChenWenLong
 * @create: 2019-11-05 15:14
 **/
public class TestPrimitiveDataType3 {

    public static void main(String[] args) {
        char  a = 'T';
        char  b = '尚';
        char c = '\u0061';
        System.out.println(c);

        //转义字符
        System.out.println(""+'a'+'\n'+'b');
        System.out.println(""+'a'+'\t'+'b');
        System.out.println(""+'a'+'\''+'b');		//a'b


        //String就是字符序列
        String  d = "abc";

        //测试布尔类型
        boolean  man = false;

        if(man){		//极端不推荐：man==true
            System.out.println("男性");
        }

    }
}
